package com.sikaryofficial.knowledge;

import com.sikaryofficial.common.security.annotation.EnableCustomConfig;
import com.sikaryofficial.common.security.annotation.EnableRyFeignClients;
import com.sikaryofficial.common.swagger.annotation.EnableCustomSwagger2;
import lombok.extern.slf4j.Slf4j;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.data.neo4j.repository.config.EnableNeo4jRepositories;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 * 处理数据
 *
 * @author qinjinyuan
 * @date 2023/10/27
 */
@EnableCustomConfig
@EnableCustomSwagger2
@EnableRyFeignClients
@SpringBootApplication
@Slf4j
@MapperScan(basePackages = {"com.sikaryofficial.**.mapper"})
@EnableNeo4jRepositories(basePackages = {"com.sikaryofficial.**.repository"})
@EnableTransactionManagement // 激活隐式事务
public class KnowledgeApplication {

    public static void main(String[] args) {
        SpringApplication.run(KnowledgeApplication.class, args);
        log.info("(♥◠‿◠)ﾉﾞ  HISMK 知识图谱模块启动成功   ლ(´ڡ`ლ)ﾞ puffy \n" +
                " _                               _               _               \n" +
                "( )                             (_ )            ( )              \n" +
                "| |/')   ___     _    _   _   _  | |    __     _| |   __     __  \n" +
                "| , <  /' _ `\\ /'_`\\ ( ) ( ) ( ) | |  /'__`\\ /'_` | /'_ `\\ /'__`\\\n" +
                "| |\\`\\ | ( ) |( (_) )| \\_/ \\_/ | | | (  ___/( (_| |( (_) |(  ___/\n" +
                "(_) (_)(_) (_)`\\___/'`\\___x___/'(___)`\\____)`\\__,_)`\\__  |`\\____)\n" +
                "                                                   ( )_) |       \n" +
                "                                                    \\___/'       \n");
    }

}
